home *** CD-ROM | disk | FTP | other *** search
- Option Explicit
-
- Sub Main ()
-
- Dim XPos, YPos
-
- frmMyIcon.Show
-
- Do While DoEvents()
-
- ' Set current position to center of the form
- frmMyIcon.CurrentX = frmMyIcon.ScaleWidth / 2
- frmMyIcon.CurrentY = frmMyIcon.ScaleHeight / 2
-
-
- ' Set thickness of the line
- frmMyIcon.DrawWidth = 1
-
- 'Set the point coordinates
- XPos = Rnd * frmMyIcon.ScaleWidth
- YPos = Rnd * frmMyIcon.ScaleHeight
-
- ' Draw the line
- frmMyIcon.Line -(XPos, YPos), QBColor(Rnd * 15)
-
-
- Loop
-
-
- End Sub
-
-